import request from "@/utils/request";

export function getInspectionTemplateByPage(query) {
  return request({
    url: `/system/inspectionTemplate/getInspectionTemplateByPage`,
    method: "post",
    data: query,
  });
}

// 增加流程模型

export function addInspectionTemplate(query) {
  return request({
    url: `/system/inspectionTemplate/addInspectionTemplate`,
    method: "post",
    data: query,
  });
}
/**
 *
 * @param {*} query
 * @returns
 */
export function delInspectionTemplate(query) {
  return request({
    url: `/system/inspectionTemplate/delInspectionTemplate`,
    method: "post",
    data: query,
  });
}

export function updateInspectionTemplate(query) {
  return request({
    url: `/system/inspectionTemplate/updateInspectionTemplate`,
    method: "post",
    data: query,
  });
}

/**
 * 上传修改文件
 * @param {} query
 * @returns
 */
export function updateInspectionTmpFile(query) {
  return request({
    url: `/system/inspectionTemplate/updateInspectionTmpFile`,
    method: "post",
    data: query,
  });
}
